<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<div class="introduction">
 
    <h1 class="newindex-title">
        <a class="_icon sprites-logo" 
           style="font-weight: 400;"
           href="/"> Dressing Social <br/>衣着交流网站</a>
    </h1>
    
    <div class="newindex-message" >
        <h2 class="welcome" style="font-size: 18px;line-height: 27px;font-weight: 400">欢迎来到Dressing Social</h2>
        <div class="description"
             style="font-size: 12px;line-height: 18px;font-weight: 400">Dressing Social的目标是成为 “一个能让你更加享受穿着所带来的乐趣的地方”。</div>
    </div>
    <shiro:guest>
    <div class="newindex-signin">
        <form id="user" action="/login" method="post" >
            <input type="hidden" value="" name="return_to">
            <div class="form-group" style="width: 290px;margin-left: 30px;">
                <label class="sr-only" for="email">Email</label>
                <input name="email" type="text" placeholder="输入注册邮箱"
                       maxlength="255" 
                       class="form-control"/>
            </div>
            <div class="input-group pass-signin" style="width: 290px;margin-left: 30px;">
                <input name="password" type="password"
                       placeholder="密码" maxlength="32" value=""
                       class="form-control">
                <span class="input-group-btn" >
                    <button type="submit" class="btn btn-info ui-button" >登录</button>>
                </span>
            </div>
            <div class="save-forgotpass " style="font-size: 12px;font-weight: 700">
                <label> <input type="checkbox" value="1" checked=""
                               name="skip"/>自动登录
                </label>
            </div>
        </form>
    </div>
    <div class="newindex-signup">
        <div class="content">
            <div>
                <p class="title" style="font-size: 12px">马上用邮箱地址注册吧(免费）</p>
                <form action="${pageContext.request.contextPath}/users" method="post" enctype="multipart/form-data">
                    <div class="center-block">
                    <div class="form-group" style="width: 290px;margin-left: 30px;">
                        <label class="sr-only" for="email">Email</label>
                        <input name="email" type="text" placeholder="mail@example.com"
                               maxlength="255" 
                               class="form-control"/>
                    </div>
                    <div class="input-group" style="width: 290px;margin-left: 30px;">
                    <input type="password" placeholder="密码"
                           name="password" maxlength="32" value="" 
                           class="form-control"/>
                    <span class="input-group-btn">
                    <button value="mail_only" name="mode" type="submit"
                            class="btn btn-success newindex-signup-button">立即注册</button>
                    </span>
                    </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    </shiro:guest>
</div>